package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.RoleDto;
import com.itheima.dto.RoleMenuDto;
import com.itheima.entry.PageResult;
import com.itheima.entry.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @author jshstart
 * @creat 2020-11-23 9:42
 */
public interface RoleService extends IService<Role> {

    PageResult findAllRoleByPage(QueryPageBean queryPageBean);

    boolean addRole(RoleDto roleDto);

    Long[] findUserByRoleId(Long id);

    boolean distribution(RoleDto roleDto);

    void deleteById(Long id);

    Long[] findMenuByRoleId(Long id);

    boolean addMenu(RoleMenuDto roleMenuDto);

    List<Role> findAllRole();

}
